package cn.keniykey.mc.landterritory.landflag.api;

import javax.annotation.Nullable;

public enum ELandFlagParType {
	NONE(0,1003010),
	ONLY(1,1003011),
	MUCH(2,1003012);
	
	private final int id;
	private final int lang;
	
	private ELandFlagParType(int id,int lang) {
		this.id = id; this.lang = lang;
	}
	
	public int getID() {
		return this.id;
	}
	public int getLandID() {
		return this.lang;
	}
	@Nullable
	public static ELandFlagParType getLandFlagParType(int id) {
		for(ELandFlagParType type : ELandFlagParType.values()) {
			if (type.getID() == id) {
				return type;
			}
		}
		return null;
	}
}